<%--
  Created by IntelliJ IDEA.
  User: asus
  Date: 2019/12/7
  Time: 22:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
 <% request.setCharacterEncoding("utf-8"); %>
 <% request.setAttribute("password",123); %>
   用户名:<%=request.getParameter("userName")  %><br>
   爱好;<%
         if(request.getParameterValues("fav")!=null){
             String[] a=request.getParameterValues("fav");
             for (int i=0;i<a.length;i++){
                 out.println(a[i]+"&nbsp;&nbsp;");
             }
         }
   %><br>
  密码:<%=request.getAttribute("password")%><br>
  Ip地址:<%=request.getRemoteAddr()%>
  服务器端口号:<%=request.getServerPort() %>

</body>
</html>
